<md-dialog aria-label="修改个人信息" style="width:600px;">
  <md-toolbar>
    <div class="md-toolbar-tools" >
      <h1>修改个人信息</h1>
    </div>
  </md-toolbar>
  <md-content class="sticky-container">
    <div class="dialog-content">
      <form name="modifyForm">
      <div layout layout-sm="column">
        <md-input-container flex>
          <label>用户名</label>
          <input ng-model="userData2.userName" name="userU"  disabled >
        </md-input-container>
         <div flex class="gender">
          <md-radio-group ng-model="userData2.sex">
            <md-radio-button value="1" >女</md-radio-button>
            <md-radio-button value="0" class="md-primary">男</md-radio-button>
          </md-radio-group>
        </div>
      </div>
      <div layout layout-sm="column">
        <md-input-container flex>
          <label>姓名</label>
          <input ng-model="userData2.realName" placeholder="请输入姓名" name="userN" ng-maxlength='10' ng-pattern='/^([A-Za-z]|[\u4E00-\u9FA5])+$/' required>
          <div ng-messages="modifyForm.userN.$error">
            <div ng-message="required">*必填</div>
            <div ng-message="maxlength">姓名不超过10位</div>
            <div ng-message="pattern">请输入英文或者中文姓名</div>
          </div>
        </md-input-container>
         <md-input-container flex>
          <label>手机</label>
          <input ng-model="userData2.phone" placeholder='请输入11位正确数字的手机号码'  ng-pattern='/^[1-9]\d{10}$/' name="userPhone" required>
          <div ng-messages="modifyForm.userPhone.$error">
            <div ng-message="required">*必填</div>
            <div ng-message="pattern">请输入11位正确数字</div>
          </div>
        </md-input-container>
      </div>
      <div layout layout-sm="column">
        <md-input-container flex>
          <label>邮箱</label>
          <input ng-model="userData2.email" type="email" placeholder="Email" ng-required="true" name="userE">
          <div ng-messages="modifyForm.userE.$error">
            <div ng-message="required">*必填</div>
            <div ng-message="email">请输入正确的邮箱</div>
          </div>
        </md-input-container>
        <md-input-container flex>
          <label>身份证</label>
          <input ng-model="userData2.idCard" placeholder='15或者18位身份证号码' ng-maxlength='18' ng-pattern='/(^\d{15}$)|(^\d{17}([0-9]|X)$)/' name="userI" required self-form="checkIdCard">
          <div ng-messages="modifyForm.userI.$error">
            <div ng-message="required">*必填</div>
            <div ng-message="check-repeat">*身份证已存在</div>
            <div ng-message="maxlength">不超过18位</div>
            <div ng-message="pattern">15或者18位数字</div>
          </div>
        </md-input-container>
      </div>
      </form>

    </div>
  </md-content>
  <div class="md-actions" layout="row">
    <span flex></span>
    <md-button ng-click="infoSave(modifyForm.$invalid)" class="md-primary" ng-disabled="modifyForm.$invalid">
      确定
    </md-button>
    <md-button ng-click="cancel()">
      取消
    </md-button>
  </div>
</md-dialog>